package com.example.gateway_quickstart.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("service")
public class ProjectController {
    @Value("${spring.application.name}")
    private String appName;
    @RequestMapping("/project/{name}")
    public String findProject(@PathVariable("name") String name){
        return "服务名称："+appName+"---查询name:"+name;
    }
}
